import request from '@/utils/request'

// 查询账号信息列表
export function listCatalog(query) {
  return request({
    url: '/system/catalog/list',
    method: 'get',
    params: query
  })
}

export function listAllCatalog(query) {
  return request({
    url: '/system/catalog/list/all',
    method: 'get',
    params: query
  })
}

// 查询账号信息详细
export function getCatalog(id) {
  return request({
    url: '/system/catalog/' + id,
    method: 'get'
  })
}

// 新增分类
export function addCatalog(data) {
  return request({
    url: '/system/catalog/create',
    method: 'post',
    data: data
  })
}

// 修改账号信息
export function updateCatalog(data) {
  return request({
    url: '/system/catalog/update',
    method: 'put',
    data: data
  })
}
